<%@include file='header.jsp'%>

<jsp:include page='top_nav.jsp'/>

<div id="container">
	
	<div id="leftNav">
		
		<p><h2>User List: </h2></p>
		
		<table id="nameTable">
			<c:forEach items="${users}" var="user">
				<tr>
					<td>
						<a href="listBookmarks.do?bemail=${user.userEmail}"><c:out value="${user.userEmail}" /></a>
					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
	
	
	<div id="content">
	
		<p><h2><c:out value="${viewingUser}" />'s Bookmark</h2></p>
		
		<jsp:include page="error.jsp" />
		
		<table id="bookmarksTable">
			<c:forEach items="${bookmarks}" var="bookmark">
				<tr>
					<td>
						<table>
							<tr>
								<td colspan=2>
									<img onMouseOver="displayComment(${bookmark.id}, this)" onMouseout="cleardata()" src="http://www.shrinktheweb.com/xino.php?embed=1&STWAccessKeyId=36e93fc92e770e1&Size=m&Url=${bookmark.URL}" alt="MyBookmarks" class="google"/>
								</td>
							
								<td>
									<table id="bookmarkDetail">
										<tr>
											<td>
												Website: 
											</td>
											<td>
												<a href="javascript: link('lpage', 'addClick.do?bid=${bookmark.id}');"><c:out value="${bookmark.URL}" /></a>
											</td>
										</tr>
										<tr>
											<td>
												Click: 
											</td>
											<td>
												<c:out value="${bookmark.clickCount}" />
											</td>
										</tr>
										<tr>
											<td>
												Comment:
											</td>
											<td>
												<c:out value="${bookmark.comment}" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</c:forEach>
		</table>	
	</div>
	

</div>

<div style="position:absolute;" id="popup">
	<table id="commentBody" bgcolor="#fffafa" border="0" cellspacing="2" cellpadding="2">
    	
	</table>
</div>

<%@include file='footer.jsp'%>
